3.7.19 \(\int \frac {\sec ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x)+C \sec ^2(c+d x))}{(a+a \sec (c+d x))^{5/2}} \, dx\) [619]

3.7.19.1 Optimal result
3.7.19.2 Mathematica [B] (verified)
3.7.19.3 Rubi [A] (verified)
3.7.19.4 Maple [B] (warning: unable to verify)
3.7.19.5 Fricas [A] (verification not implemented)
3.7.19.6 Sympy [F(-1)]
3.7.19.7 Maxima [B] (verification not implemented)
3.7.19.8 Giac [F]
3.7.19.9 Mupad [F(-1)]

3.7.19.1 Optimal result

Integrand size = 45, antiderivative size = 254 \[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {(2 B-5 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^{5/2} d}+\frac {(3 A-43 B+115 C) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A-B+C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(A+7 B-15 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(3 A-11 B+35 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 a^2 d \sqrt {a+a \sec (c+d x)}} \]

output
(2*B-5*C)*arcsinh(a^(1/2)*tan(d*x+c)/(a+a*sec(d*x+c))^(1/2))/a^(5/2)/d-1/4 
*(A-B+C)*sec(d*x+c)^(7/2)*sin(d*x+c)/d/(a+a*sec(d*x+c))^(5/2)+1/16*(A+7*B- 
15*C)*sec(d*x+c)^(5/2)*sin(d*x+c)/a/d/(a+a*sec(d*x+c))^(3/2)+1/32*(3*A-43* 
B+115*C)*arctanh(1/2*sin(d*x+c)*a^(1/2)*sec(d*x+c)^(1/2)*2^(1/2)/(a+a*sec( 
d*x+c))^(1/2))/a^(5/2)/d*2^(1/2)+1/16*(3*A-11*B+35*C)*sec(d*x+c)^(3/2)*sin 
(d*x+c)/a^2/d/(a+a*sec(d*x+c))^(1/2)
 
3.7.19.2 Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(1159\) vs. \(2(254)=508\).

Time = 8.01 (sec) , antiderivative size = 1159, normalized size of antiderivative = 4.56 \[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {C \sqrt {1+\sec (c+d x)} \left (-\frac {\sec ^{\frac {11}{2}}(c+d x) \sin (c+d x)}{4 d (1+\sec (c+d x))^{5/2}}+\frac {7 \sec ^{\frac {11}{2}}(c+d x) \sin (c+d x)}{16 d (1+\sec (c+d x))^{3/2}}+\frac {35 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}-\frac {15 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}+\frac {11 \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}-\frac {7 \sec ^{\frac {9}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}+\frac {35 \arcsin \left (\sqrt {1-\sec (c+d x)}\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}+\frac {115 \arcsin \left (\sqrt {\sec (c+d x)}\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}-\frac {115 \arctan \left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right ) \tan (c+d x)}{16 \sqrt {2} d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}\right )}{a^2 \sqrt {a (1+\sec (c+d x))}}+\frac {A \sqrt {1+\sec (c+d x)} \left (-\frac {\sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 d (1+\sec (c+d x))^{5/2}}-\frac {\sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{16 d (1+\sec (c+d x))^{3/2}}+\frac {3 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}+\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}+\frac {3 \arcsin \left (\sqrt {1-\sec (c+d x)}\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}+\frac {3 \arcsin \left (\sqrt {\sec (c+d x)}\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}-\frac {3 \arctan \left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right ) \tan (c+d x)}{16 \sqrt {2} d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}\right )}{a^2 \sqrt {a (1+\sec (c+d x))}}+\frac {B \sqrt {1+\sec (c+d x)} \left (-\frac {\sec ^{\frac {9}{2}}(c+d x) \sin (c+d x)}{4 d (1+\sec (c+d x))^{5/2}}+\frac {3 \sec ^{\frac {9}{2}}(c+d x) \sin (c+d x)}{16 d (1+\sec (c+d x))^{3/2}}-\frac {11 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}+\frac {7 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}-\frac {3 \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{16 d \sqrt {1+\sec (c+d x)}}-\frac {11 \arcsin \left (\sqrt {1-\sec (c+d x)}\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}-\frac {43 \arcsin \left (\sqrt {\sec (c+d x)}\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}+\frac {43 \arctan \left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right ) \tan (c+d x)}{16 \sqrt {2} d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}\right )}{a^2 \sqrt {a (1+\sec (c+d x))}} \]

input
Integrate[(Sec[c + d*x]^(5/2)*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/(a 
+ a*Sec[c + d*x])^(5/2),x]
 
output
(C*Sqrt[1 + Sec[c + d*x]]*(-1/4*(Sec[c + d*x]^(11/2)*Sin[c + d*x])/(d*(1 + 
 Sec[c + d*x])^(5/2)) + (7*Sec[c + d*x]^(11/2)*Sin[c + d*x])/(16*d*(1 + Se 
c[c + d*x])^(3/2)) + (35*Sec[c + d*x]^(3/2)*Sin[c + d*x])/(16*d*Sqrt[1 + S 
ec[c + d*x]]) - (15*Sec[c + d*x]^(5/2)*Sin[c + d*x])/(16*d*Sqrt[1 + Sec[c 
+ d*x]]) + (11*Sec[c + d*x]^(7/2)*Sin[c + d*x])/(16*d*Sqrt[1 + Sec[c + d*x 
]]) - (7*Sec[c + d*x]^(9/2)*Sin[c + d*x])/(16*d*Sqrt[1 + Sec[c + d*x]]) + 
(35*ArcSin[Sqrt[1 - Sec[c + d*x]]]*Tan[c + d*x])/(16*d*Sqrt[1 - Sec[c + d* 
x]]*Sqrt[1 + Sec[c + d*x]]) + (115*ArcSin[Sqrt[Sec[c + d*x]]]*Tan[c + d*x] 
)/(16*d*Sqrt[1 - Sec[c + d*x]]*Sqrt[1 + Sec[c + d*x]]) - (115*ArcTan[(Sqrt 
[2]*Sqrt[Sec[c + d*x]])/Sqrt[1 - Sec[c + d*x]]]*Tan[c + d*x])/(16*Sqrt[2]* 
d*Sqrt[1 - Sec[c + d*x]]*Sqrt[1 + Sec[c + d*x]])))/(a^2*Sqrt[a*(1 + Sec[c 
+ d*x])]) + (A*Sqrt[1 + Sec[c + d*x]]*(-1/4*(Sec[c + d*x]^(7/2)*Sin[c + d* 
x])/(d*(1 + Sec[c + d*x])^(5/2)) - (Sec[c + d*x]^(7/2)*Sin[c + d*x])/(16*d 
*(1 + Sec[c + d*x])^(3/2)) + (3*Sec[c + d*x]^(3/2)*Sin[c + d*x])/(16*d*Sqr 
t[1 + Sec[c + d*x]]) + (Sec[c + d*x]^(5/2)*Sin[c + d*x])/(16*d*Sqrt[1 + Se 
c[c + d*x]]) + (3*ArcSin[Sqrt[1 - Sec[c + d*x]]]*Tan[c + d*x])/(16*d*Sqrt[ 
1 - Sec[c + d*x]]*Sqrt[1 + Sec[c + d*x]]) + (3*ArcSin[Sqrt[Sec[c + d*x]]]* 
Tan[c + d*x])/(16*d*Sqrt[1 - Sec[c + d*x]]*Sqrt[1 + Sec[c + d*x]]) - (3*Ar 
cTan[(Sqrt[2]*Sqrt[Sec[c + d*x]])/Sqrt[1 - Sec[c + d*x]]]*Tan[c + d*x])/(1 
6*Sqrt[2]*d*Sqrt[1 - Sec[c + d*x]]*Sqrt[1 + Sec[c + d*x]])))/(a^2*Sqrt[...
 
3.7.19.3 Rubi [A] (verified)

Time = 1.71 (sec) , antiderivative size = 269, normalized size of antiderivative = 1.06, number of steps used = 16, number of rules used = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3042, 4572, 27, 3042, 4507, 27, 3042, 4509, 3042, 4511, 3042, 4288, 222, 4295, 219}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a \sec (c+d x)+a)^{5/2}} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (A+B \csc \left (c+d x+\frac {\pi }{2}\right )+C \csc \left (c+d x+\frac {\pi }{2}\right )^2\right )}{\left (a \csc \left (c+d x+\frac {\pi }{2}\right )+a\right )^{5/2}}dx\)

\(\Big \downarrow \) 4572

\(\displaystyle \frac {\int \frac {\sec ^{\frac {5}{2}}(c+d x) (a (3 A+5 B-5 C)+2 a (A-B+5 C) \sec (c+d x))}{2 (\sec (c+d x) a+a)^{3/2}}dx}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {\int \frac {\sec ^{\frac {5}{2}}(c+d x) (a (3 A+5 B-5 C)+2 a (A-B+5 C) \sec (c+d x))}{(\sec (c+d x) a+a)^{3/2}}dx}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (a (3 A+5 B-5 C)+2 a (A-B+5 C) \csc \left (c+d x+\frac {\pi }{2}\right )\right )}{\left (\csc \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^{3/2}}dx}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 4507

\(\displaystyle \frac {\frac {\int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (3 (A+7 B-15 C) a^2+2 (3 A-11 B+35 C) \sec (c+d x) a^2\right )}{2 \sqrt {\sec (c+d x) a+a}}dx}{2 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {\frac {\int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (3 (A+7 B-15 C) a^2+2 (3 A-11 B+35 C) \sec (c+d x) a^2\right )}{\sqrt {\sec (c+d x) a+a}}dx}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\frac {\int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2} \left (3 (A+7 B-15 C) a^2+2 (3 A-11 B+35 C) \csc \left (c+d x+\frac {\pi }{2}\right ) a^2\right )}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 4509

\(\displaystyle \frac {\frac {\frac {\int \frac {\sqrt {\sec (c+d x)} \left ((3 A-11 B+35 C) a^3+16 (2 B-5 C) \sec (c+d x) a^3\right )}{\sqrt {\sec (c+d x) a+a}}dx}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\frac {\frac {\int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )} \left ((3 A-11 B+35 C) a^3+16 (2 B-5 C) \csc \left (c+d x+\frac {\pi }{2}\right ) a^3\right )}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 4511

\(\displaystyle \frac {\frac {\frac {a^3 (3 A-43 B+115 C) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {\sec (c+d x) a+a}}dx+16 a^2 (2 B-5 C) \int \sqrt {\sec (c+d x)} \sqrt {\sec (c+d x) a+a}dx}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\frac {\frac {a^3 (3 A-43 B+115 C) \int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx+16 a^2 (2 B-5 C) \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )} \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}dx}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 4288

\(\displaystyle \frac {\frac {\frac {a^3 (3 A-43 B+115 C) \int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx-\frac {32 a^2 (2 B-5 C) \int \frac {1}{\sqrt {\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1}}d\left (-\frac {a \tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )}{d}}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 222

\(\displaystyle \frac {\frac {\frac {a^3 (3 A-43 B+115 C) \int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx+\frac {32 a^{5/2} (2 B-5 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 4295

\(\displaystyle \frac {\frac {\frac {\frac {32 a^{5/2} (2 B-5 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}-\frac {2 a^3 (3 A-43 B+115 C) \int \frac {1}{2 a-\frac {a^2 \sin (c+d x) \tan (c+d x)}{\sec (c+d x) a+a}}d\left (-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )}{d}}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

\(\Big \downarrow \) 219

\(\displaystyle \frac {\frac {\frac {\frac {\sqrt {2} a^{5/2} (3 A-43 B+115 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {32 a^{5/2} (2 B-5 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}}{a}+\frac {2 a^2 (3 A-11 B+35 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{d \sqrt {a \sec (c+d x)+a}}}{4 a^2}+\frac {a (A+7 B-15 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{2 d (a \sec (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}\)

input
Int[(Sec[c + d*x]^(5/2)*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/(a + a*Se 
c[c + d*x])^(5/2),x]
 
output
-1/4*((A - B + C)*Sec[c + d*x]^(7/2)*Sin[c + d*x])/(d*(a + a*Sec[c + d*x]) 
^(5/2)) + ((a*(A + 7*B - 15*C)*Sec[c + d*x]^(5/2)*Sin[c + d*x])/(2*d*(a + 
a*Sec[c + d*x])^(3/2)) + (((32*a^(5/2)*(2*B - 5*C)*ArcSinh[(Sqrt[a]*Tan[c 
+ d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (Sqrt[2]*a^(5/2)*(3*A - 43*B + 115* 
C)*ArcTanh[(Sqrt[a]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(Sqrt[2]*Sqrt[a + a*S 
ec[c + d*x]])])/d)/a + (2*a^2*(3*A - 11*B + 35*C)*Sec[c + d*x]^(3/2)*Sin[c 
 + d*x])/(d*Sqrt[a + a*Sec[c + d*x]]))/(4*a^2))/(8*a^2)
 

3.7.19.3.1 Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 219
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* 
ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt 
Q[a, 0] || LtQ[b, 0])
 

rule 222
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt 
[a])]/Rt[b, 2], x] /; FreeQ[{a, b}, x] && GtQ[a, 0] && PosQ[b]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 4288
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) 
+ (a_)], x_Symbol] :> Simp[-2*(a/(b*f))*Sqrt[a*(d/b)]   Subst[Int[1/Sqrt[1 
+ x^2/a], x], x, b*(Cot[e + f*x]/Sqrt[a + b*Csc[e + f*x]])], x] /; FreeQ[{a 
, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[a*(d/b), 0]
 

rule 4295
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) 
+ (a_)], x_Symbol] :> Simp[-2*b*(d/(a*f))   Subst[Int[1/(2*b - d*x^2), x], 
x, b*(Cot[e + f*x]/(Sqrt[a + b*Csc[e + f*x]]*Sqrt[d*Csc[e + f*x]]))], x] /; 
 FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0]
 

rule 4507
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( 
a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[d*(A*b 
- a*B)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*Csc[e + f*x])^(n - 1)/(a*f*( 
2*m + 1))), x] - Simp[1/(a*b*(2*m + 1))   Int[(a + b*Csc[e + f*x])^(m + 1)* 
(d*Csc[e + f*x])^(n - 1)*Simp[A*(a*d*(n - 1)) - B*(b*d*(n - 1)) - d*(a*B*(m 
 - n + 1) + A*b*(m + n))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, 
A, B}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && LtQ[m, -2^(-1)] && G 
tQ[n, 0]
 

rule 4509
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( 
a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[(-B)*d* 
Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*Csc[e + f*x])^(n - 1)/(f*(m + n))), 
 x] + Simp[d/(b*(m + n))   Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^(n - 
 1)*Simp[b*B*(n - 1) + (A*b*(m + n) + a*B*m)*Csc[e + f*x], x], x], x] /; Fr 
eeQ[{a, b, d, e, f, A, B, m}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] 
&& GtQ[n, 1]
 

rule 4511
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( 
a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[(A*b - 
a*B)/b   Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n, x], x] + Simp[B/b 
 Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n, x], x] /; FreeQ[{a, b 
, d, e, f, A, B, m}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0]
 

rule 4572
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_. 
))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a 
_))^(m_), x_Symbol] :> Simp[(-(a*A - b*B + a*C))*Cot[e + f*x]*(a + b*Csc[e 
+ f*x])^m*((d*Csc[e + f*x])^n/(a*f*(2*m + 1))), x] - Simp[1/(a*b*(2*m + 1)) 
   Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n*Simp[a*B*n - b*C*n - 
 A*b*(2*m + n + 1) - (b*B*(m + n + 1) - a*(A*(m + n + 1) - C*(m - n)))*Csc[ 
e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, B, C, n}, x] && EqQ[a^2 - 
b^2, 0] && LtQ[m, -2^(-1)]
 
3.7.19.4 Maple [B] (warning: unable to verify)

Leaf count of result is larger than twice the leaf count of optimal. \(1384\) vs. \(2(217)=434\).

Time = 2.05 (sec) , antiderivative size = 1385, normalized size of antiderivative = 5.45

method result size
parts \(\text {Expression too large to display}\) \(1385\)
default \(\text {Expression too large to display}\) \(1442\)

input
int(sec(d*x+c)^(5/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^(5/2 
),x,method=_RETURNVERBOSE)
 
output
-1/32*A/d/a^3*(-((1-cos(d*x+c))^2*csc(d*x+c)^2+1)/((1-cos(d*x+c))^2*csc(d* 
x+c)^2-1))^(5/2)*((1-cos(d*x+c))^2*csc(d*x+c)^2-1)^3*(-2*a/((1-cos(d*x+c)) 
^2*csc(d*x+c)^2-1))^(1/2)*(2*(-(1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2)*(1-c 
os(d*x+c))^3*csc(d*x+c)^3+5*(-(1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2)*(-cot 
(d*x+c)+csc(d*x+c))-3*arctan(1/(-(1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2)*(- 
cot(d*x+c)+csc(d*x+c))))/((1-cos(d*x+c))^2*csc(d*x+c)^2+1)^2/(-(1-cos(d*x+ 
c))^2*csc(d*x+c)^2-1)^(1/2)-1/32*B/d/a^3*(-((1-cos(d*x+c))^2*csc(d*x+c)^2+ 
1)/((1-cos(d*x+c))^2*csc(d*x+c)^2-1))^(7/2)*((1-cos(d*x+c))^2*csc(d*x+c)^2 
-1)^4*(-2*a/((1-cos(d*x+c))^2*csc(d*x+c)^2-1))^(1/2)*(2*(-(1-cos(d*x+c))^2 
*csc(d*x+c)^2-1)^(1/2)*(1-cos(d*x+c))^3*csc(d*x+c)^3+16*2^(1/2)*arctan(1/2 
*(-cot(d*x+c)+csc(d*x+c)-1)*2^(1/2)/(-(1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/ 
2))+16*2^(1/2)*arctan(1/2*(csc(d*x+c)-cot(d*x+c)+1)*2^(1/2)/(-(1-cos(d*x+c 
))^2*csc(d*x+c)^2-1)^(1/2))+13*(-(1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2)*(- 
cot(d*x+c)+csc(d*x+c))-43*arctan(1/(-(1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2 
)*(-cot(d*x+c)+csc(d*x+c))))/((1-cos(d*x+c))^2*csc(d*x+c)^2+1)^3/(-(1-cos( 
d*x+c))^2*csc(d*x+c)^2-1)^(1/2)-1/32*C/d/a^3*(-((1-cos(d*x+c))^2*csc(d*x+c 
)^2+1)/((1-cos(d*x+c))^2*csc(d*x+c)^2-1))^(9/2)*((1-cos(d*x+c))^2*csc(d*x+ 
c)^2-1)^4*(-2*a/((1-cos(d*x+c))^2*csc(d*x+c)^2-1))^(1/2)*(2*(-(1-cos(d*x+c 
))^2*csc(d*x+c)^2-1)^(1/2)*(1-cos(d*x+c))^5*csc(d*x+c)^5+40*2^(1/2)*arctan 
(1/2*(-cot(d*x+c)+csc(d*x+c)-1)*2^(1/2)/(-(1-cos(d*x+c))^2*csc(d*x+c)^2...
 
3.7.19.5 Fricas [A] (verification not implemented)

Time = 0.41 (sec) , antiderivative size = 837, normalized size of antiderivative = 3.30 \[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\text {Too large to display} \]

input
integrate(sec(d*x+c)^(5/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c) 
)^(5/2),x, algorithm="fricas")
 
output
[1/64*(sqrt(2)*((3*A - 43*B + 115*C)*cos(d*x + c)^3 + 3*(3*A - 43*B + 115* 
C)*cos(d*x + c)^2 + 3*(3*A - 43*B + 115*C)*cos(d*x + c) + 3*A - 43*B + 115 
*C)*sqrt(a)*log(-(a*cos(d*x + c)^2 - 2*sqrt(2)*sqrt(a)*sqrt((a*cos(d*x + c 
) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) - 2*a*cos(d*x + c) - 
3*a)/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1)) - 16*((2*B - 5*C)*cos(d*x + c) 
^3 + 3*(2*B - 5*C)*cos(d*x + c)^2 + 3*(2*B - 5*C)*cos(d*x + c) + 2*B - 5*C 
)*sqrt(a)*log((a*cos(d*x + c)^3 - 7*a*cos(d*x + c)^2 + 4*(cos(d*x + c)^2 - 
 2*cos(d*x + c))*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + 
 c)/sqrt(cos(d*x + c)) + 8*a)/(cos(d*x + c)^3 + cos(d*x + c)^2)) + 4*((3*A 
 - 11*B + 35*C)*cos(d*x + c)^2 + (7*A - 15*B + 55*C)*cos(d*x + c) + 16*C)* 
sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)))/( 
a^3*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 + 3*a^3*d*cos(d*x + c) + a^3 
*d), -1/32*(sqrt(2)*((3*A - 43*B + 115*C)*cos(d*x + c)^3 + 3*(3*A - 43*B + 
 115*C)*cos(d*x + c)^2 + 3*(3*A - 43*B + 115*C)*cos(d*x + c) + 3*A - 43*B 
+ 115*C)*sqrt(-a)*arctan(sqrt(2)*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d* 
x + c))*sqrt(cos(d*x + c))/(a*sin(d*x + c))) - 16*((2*B - 5*C)*cos(d*x + c 
)^3 + 3*(2*B - 5*C)*cos(d*x + c)^2 + 3*(2*B - 5*C)*cos(d*x + c) + 2*B - 5* 
C)*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt 
(cos(d*x + c))*sin(d*x + c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)) - 2 
*((3*A - 11*B + 35*C)*cos(d*x + c)^2 + (7*A - 15*B + 55*C)*cos(d*x + c)...
 
3.7.19.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\text {Timed out} \]

input
integrate(sec(d*x+c)**(5/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)**2)/(a+a*sec(d*x+ 
c))**(5/2),x)
 
output
Timed out
 
3.7.19.7 Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 98366 vs. \(2 (217) = 434\).

Time = 17.05 (sec) , antiderivative size = 98366, normalized size of antiderivative = 387.27 \[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\text {Too large to display} \]

input
integrate(sec(d*x+c)^(5/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c) 
)^(5/2),x, algorithm="maxima")
 
output
1/32*((512*((2*sin(2*d*x + 2*c) + sin(d*x + c))*cos(5/2*d*x + 5/2*c) + cos 
(5/2*d*x + 5/2*c)*sin(4*d*x + 4*c) + 2*cos(5/2*d*x + 5/2*c)*sin(3*d*x + 3* 
c) + (2*cos(2*d*x + 2*c) + cos(d*x + c))*sin(5/2*d*x + 5/2*c) + cos(4*d*x 
+ 4*c)*sin(5/2*d*x + 5/2*c) + 2*cos(3*d*x + 3*c)*sin(5/2*d*x + 5/2*c))*cos 
(5*d*x + 5*c)^2 + 2560*(5*(2*sin(2*d*x + 2*c) + sin(d*x + c))*cos(5/2*d*x 
+ 5/2*c) + cos(5/2*d*x + 5/2*c)*sin(5*d*x + 5*c) + 5*cos(5/2*d*x + 5/2*c)* 
sin(4*d*x + 4*c) + 10*cos(5/2*d*x + 5/2*c)*sin(3*d*x + 3*c) - (10*cos(2*d* 
x + 2*c) + 5*cos(d*x + c) + 1)*sin(5/2*d*x + 5/2*c) - cos(5*d*x + 5*c)*sin 
(5/2*d*x + 5/2*c) - 5*cos(4*d*x + 4*c)*sin(5/2*d*x + 5/2*c) - 10*cos(3*d*x 
 + 3*c)*sin(5/2*d*x + 5/2*c))*cos(8/5*arctan2(sin(5/2*d*x + 5/2*c), cos(5/ 
2*d*x + 5/2*c)))^2 + 10240*(5*(2*sin(2*d*x + 2*c) + sin(d*x + c))*cos(5/2* 
d*x + 5/2*c) + cos(5/2*d*x + 5/2*c)*sin(5*d*x + 5*c) + 5*cos(5/2*d*x + 5/2 
*c)*sin(4*d*x + 4*c) + 10*cos(5/2*d*x + 5/2*c)*sin(3*d*x + 3*c) - (10*cos( 
2*d*x + 2*c) + 5*cos(d*x + c) + 1)*sin(5/2*d*x + 5/2*c) - cos(5*d*x + 5*c) 
*sin(5/2*d*x + 5/2*c) - 5*cos(4*d*x + 4*c)*sin(5/2*d*x + 5/2*c) - 10*cos(3 
*d*x + 3*c)*sin(5/2*d*x + 5/2*c))*cos(6/5*arctan2(sin(5/2*d*x + 5/2*c), co 
s(5/2*d*x + 5/2*c)))^2 + 10240*(5*(2*sin(2*d*x + 2*c) + sin(d*x + c))*cos( 
5/2*d*x + 5/2*c) + cos(5/2*d*x + 5/2*c)*sin(5*d*x + 5*c) + 5*cos(5/2*d*x + 
 5/2*c)*sin(4*d*x + 4*c) + 10*cos(5/2*d*x + 5/2*c)*sin(3*d*x + 3*c) - (10* 
cos(2*d*x + 2*c) + 5*cos(d*x + c) + 1)*sin(5/2*d*x + 5/2*c) - cos(5*d*x...
 
3.7.19.8 Giac [F]

\[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\int { \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]

input
integrate(sec(d*x+c)^(5/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c) 
)^(5/2),x, algorithm="giac")
 
output
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)*sec(d*x + c)^(5/2)/(a*se 
c(d*x + c) + a)^(5/2), x)
 
3.7.19.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\sec ^{\frac {5}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]

input
int(((1/cos(c + d*x))^(5/2)*(A + B/cos(c + d*x) + C/cos(c + d*x)^2))/(a + 
a/cos(c + d*x))^(5/2),x)
 
output
int(((1/cos(c + d*x))^(5/2)*(A + B/cos(c + d*x) + C/cos(c + d*x)^2))/(a + 
a/cos(c + d*x))^(5/2), x)